/**
 * Created by kangdaye on 16/5/15.
 */
app.service('orderListService',["$http", function($http) {
    this.list = function (getData,callback) {
        $http.get(servicePath + 'orders/list',{params : getData}).success(callback);
    };

    this.logistics = function (getData,callback) {
        $http.get(servicePath + 'orders/logistics',{params : getData}).success(callback);
    };

    this.refundAudit = function (postData,callback) {
        $http.post(servicePath + 'orders/refundAudit',postData).success(callback);
    };

    this.remark = function (postData,callback) {
        $http.post(servicePath + 'orders/remark',postData).success(callback);
    };

    this.companyList = function (callback) {
        $http.get(servicePath + 'orders/delivery_company_list').success(callback);
    };

    this.delivery = function (postData,callback) {
        $http.post(servicePath + 'orders/delivery',postData).success(callback);
    };

    this.updateDelivery = function (postData,callback) {
        $http.post(servicePath + 'orders/update_delivery',postData).success(callback);
    };

    this.getDelivery = function (postData,callback) {
        $http.post(servicePath + 'orders/get_delivery',postData).success(callback);
    };

    this.details = function (postData,callback) {
        $http.post(servicePath + 'orders/details',postData).success(callback);
    };

    this.updateFreight = function (postData,callback) {
        $http.post(servicePath + 'orders/update_freight',postData).success(callback);
    };
}]);
